package com.jweb.framework.core.channel;

import java.util.Locale;
import java.util.Map;

public interface MessagesProvider {
	
	public Map getValues(String code , Locale locale) ;
	
	public Object resolveError(Throwable t , Locale locale);
	
	public Object resolveError(String code , Object args[], String defMsg, Locale locale);

    public String getMessage(String code , Locale locale);

    public String getMessage(String s, Object args[], Locale locale);
	
}
